package com.gitee.cui.springcloud.dao;

import com.gitee.cui.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 操作支付接口
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022-03-04 14:33
 **/
@Mapper
public interface PaymentDao {

	/**
	 * 创建支付信息
	 * @param payment 支付信息
	 * @return 创建成功的id
	 */
	int create(Payment payment);

	/**
	 * 根据id获取支付信息
	 * @param id 支付id
	 * @return 支付信息
	 */
	Payment getPaymentById(@Param("id") Long id);
}
